package com.cskaoyan.service.admin;

import com.cskaoyan.model.admin.bo.MarketCategoryBo;
import com.cskaoyan.model.admin.bo.MarketCreateCategoryBo;
import com.cskaoyan.model.admin.vo.MarketCategoryL1Vo;
import com.cskaoyan.model.admin.vo.MarketCategoryVo;
import com.cskaoyan.model.admin.vo.MarketCreateCategoryVo;

import java.util.List;

/**
 * @description:
 * @author: 牛犇
 * @date 2021/11/29 19:53
 */
public interface AdminCategoryService {
    /**
     * 查询商品类目表 包括一级类目和二级类目
     * @return
     */
    List<MarketCategoryVo> list();


    /**
     * 查询第一级别类目
     * @return
     */
    List<MarketCategoryL1Vo> list2();

    /**
     * 编辑商品
     * @param marketCategoryBo
     */
    String updateMarketCategory(MarketCategoryBo marketCategoryBo);

    /**
     * 删除商品
     * @param marketCategoryBo
     */
    void deleteMarketCategory(MarketCategoryBo marketCategoryBo);

    /**
     * 增加商品类目
     * @param marketCreateCategoryBo
     * @return
     */
    MarketCreateCategoryVo createMarketCategory(MarketCreateCategoryBo marketCreateCategoryBo);

}
